package com.framework;

import com.framework.myBatis.QueryFilter;

import java.io.Serializable;
import java.util.List;

public interface BaseService<T, K extends Serializable> {

    public abstract Result deleteByPrimaryKey(T id);

    public abstract Result insert(K record);

    public abstract Result insertSelective(K record);

    public abstract K selectByPrimaryKey(T id);

    public abstract List<K> selectList();

    public abstract Result updateByPrimaryKeySelective(K record);

    public abstract Result updateByPrimaryKey(K record);


    public abstract Result findOne(QueryFilter filter);

    public abstract Result findList(QueryFilter filter);

    public abstract Result findPager(QueryFilter filter);

    public abstract Result delete(QueryFilter filter);

    public abstract Result save(QueryFilter filter);

    public abstract Result update(QueryFilter filter);



}
